#include "TcpServer.hpp"
#include <memory>

using namespace std;
static void usage(std::string process)
{
    cerr << "\nUsage: " << process << " port\n"
         << endl;
}

int main(int argc ,char*argv[])
{
    if(argc != 2)
    {
        usage(argv[0]);
        exit(0);
    }
    unique_ptr<TcpServer> svr(new TcpServer(atoi(argv[1])));

    svr->Run();

    return 0;

}